package com.giscloud.limp.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 法院信息
 *
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-12 09:49:29
 */
public class CourtInfoExample {
    protected String orderByClause;
    protected boolean distinct;
    protected List<Criteria> oredCriteria;
    public CourtInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }
    public String getOrderByClause() {
        return orderByClause;
    }
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }
    public boolean isDistinct() {
        return distinct;
    }
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

                                    public Criteria andCourtIdIsNull() {
                    addCriterion("court_id is null");
                    return (Criteria) this;
                }

                public Criteria andCourtIdIsNotNull() {
                    addCriterion("court_id is not null");
                    return (Criteria) this;
                }

                public Criteria andCourtIdEqualTo(Integer value) {
                    addCriterion("court_id =", value, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdNotEqualTo(Integer value) {
                    addCriterion("court_id <>", value, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdGreaterThan(Integer value) {
                    addCriterion("court_id >", value, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdGreaterThanOrEqualTo(Integer value) {
                    addCriterion("court_id >=", value, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdLessThan(Integer value) {
                    addCriterion("court_id <", value, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdLessThanOrEqualTo(Integer value) {
                    addCriterion("court_id <=", value, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdIn(List<Integer> values) {
                    addCriterion("court_id in", values, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdNotIn(List<Integer> values) {
                    addCriterion("court_id not in", values, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdBetween(Integer value1, Integer value2) {
                    addCriterion("court_id between", value1, value2, "courtId");
                    return (Criteria) this;
                }

                public Criteria andCourtIdNotBetween(Integer value1, Integer value2) {
                    addCriterion("court_id not between", value1, value2, "courtId");
                    return (Criteria) this;
                }
                                    public Criteria andParentIdIsNull() {
                    addCriterion("parent_id is null");
                    return (Criteria) this;
                }

                public Criteria andParentIdIsNotNull() {
                    addCriterion("parent_id is not null");
                    return (Criteria) this;
                }

                public Criteria andParentIdEqualTo(Integer value) {
                    addCriterion("parent_id =", value, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdNotEqualTo(Integer value) {
                    addCriterion("parent_id <>", value, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdGreaterThan(Integer value) {
                    addCriterion("parent_id >", value, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
                    addCriterion("parent_id >=", value, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdLessThan(Integer value) {
                    addCriterion("parent_id <", value, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdLessThanOrEqualTo(Integer value) {
                    addCriterion("parent_id <=", value, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdIn(List<Integer> values) {
                    addCriterion("parent_id in", values, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdNotIn(List<Integer> values) {
                    addCriterion("parent_id not in", values, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdBetween(Integer value1, Integer value2) {
                    addCriterion("parent_id between", value1, value2, "parentId");
                    return (Criteria) this;
                }

                public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
                    addCriterion("parent_id not between", value1, value2, "parentId");
                    return (Criteria) this;
                }
                            public Criteria andCourtNameLike(String value) {
                    addCriterion("court_name like", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameNotLike(String value) {
                    addCriterion("court_name not like", value, "courtName");
                    return (Criteria) this;
                }
                            public Criteria andCourtNameIsNull() {
                    addCriterion("court_name is null");
                    return (Criteria) this;
                }

                public Criteria andCourtNameIsNotNull() {
                    addCriterion("court_name is not null");
                    return (Criteria) this;
                }

                public Criteria andCourtNameEqualTo(String value) {
                    addCriterion("court_name =", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameNotEqualTo(String value) {
                    addCriterion("court_name <>", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameGreaterThan(String value) {
                    addCriterion("court_name >", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameGreaterThanOrEqualTo(String value) {
                    addCriterion("court_name >=", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameLessThan(String value) {
                    addCriterion("court_name <", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameLessThanOrEqualTo(String value) {
                    addCriterion("court_name <=", value, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameIn(List<String> values) {
                    addCriterion("court_name in", values, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameNotIn(List<String> values) {
                    addCriterion("court_name not in", values, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameBetween(String value1, String value2) {
                    addCriterion("court_name between", value1, value2, "courtName");
                    return (Criteria) this;
                }

                public Criteria andCourtNameNotBetween(String value1, String value2) {
                    addCriterion("court_name not between", value1, value2, "courtName");
                    return (Criteria) this;
                }
                            public Criteria andCourtTypeLike(String value) {
                    addCriterion("court_type like", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeNotLike(String value) {
                    addCriterion("court_type not like", value, "courtType");
                    return (Criteria) this;
                }
                            public Criteria andCourtTypeIsNull() {
                    addCriterion("court_type is null");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeIsNotNull() {
                    addCriterion("court_type is not null");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeEqualTo(String value) {
                    addCriterion("court_type =", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeNotEqualTo(String value) {
                    addCriterion("court_type <>", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeGreaterThan(String value) {
                    addCriterion("court_type >", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeGreaterThanOrEqualTo(String value) {
                    addCriterion("court_type >=", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeLessThan(String value) {
                    addCriterion("court_type <", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeLessThanOrEqualTo(String value) {
                    addCriterion("court_type <=", value, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeIn(List<String> values) {
                    addCriterion("court_type in", values, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeNotIn(List<String> values) {
                    addCriterion("court_type not in", values, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeBetween(String value1, String value2) {
                    addCriterion("court_type between", value1, value2, "courtType");
                    return (Criteria) this;
                }

                public Criteria andCourtTypeNotBetween(String value1, String value2) {
                    addCriterion("court_type not between", value1, value2, "courtType");
                    return (Criteria) this;
                }
                                    public Criteria andStatusCdIsNull() {
                    addCriterion("status_cd is null");
                    return (Criteria) this;
                }

                public Criteria andStatusCdIsNotNull() {
                    addCriterion("status_cd is not null");
                    return (Criteria) this;
                }

                public Criteria andStatusCdEqualTo(Integer value) {
                    addCriterion("status_cd =", value, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdNotEqualTo(Integer value) {
                    addCriterion("status_cd <>", value, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdGreaterThan(Integer value) {
                    addCriterion("status_cd >", value, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdGreaterThanOrEqualTo(Integer value) {
                    addCriterion("status_cd >=", value, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdLessThan(Integer value) {
                    addCriterion("status_cd <", value, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdLessThanOrEqualTo(Integer value) {
                    addCriterion("status_cd <=", value, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdIn(List<Integer> values) {
                    addCriterion("status_cd in", values, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdNotIn(List<Integer> values) {
                    addCriterion("status_cd not in", values, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdBetween(Integer value1, Integer value2) {
                    addCriterion("status_cd between", value1, value2, "statusCd");
                    return (Criteria) this;
                }

                public Criteria andStatusCdNotBetween(Integer value1, Integer value2) {
                    addCriterion("status_cd not between", value1, value2, "statusCd");
                    return (Criteria) this;
                }
                                    public Criteria andCreatedStaffIdIsNull() {
                    addCriterion("created_staff_id is null");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdIsNotNull() {
                    addCriterion("created_staff_id is not null");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdEqualTo(Integer value) {
                    addCriterion("created_staff_id =", value, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdNotEqualTo(Integer value) {
                    addCriterion("created_staff_id <>", value, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdGreaterThan(Integer value) {
                    addCriterion("created_staff_id >", value, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdGreaterThanOrEqualTo(Integer value) {
                    addCriterion("created_staff_id >=", value, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdLessThan(Integer value) {
                    addCriterion("created_staff_id <", value, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdLessThanOrEqualTo(Integer value) {
                    addCriterion("created_staff_id <=", value, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdIn(List<Integer> values) {
                    addCriterion("created_staff_id in", values, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdNotIn(List<Integer> values) {
                    addCriterion("created_staff_id not in", values, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdBetween(Integer value1, Integer value2) {
                    addCriterion("created_staff_id between", value1, value2, "createdStaffId");
                    return (Criteria) this;
                }

                public Criteria andCreatedStaffIdNotBetween(Integer value1, Integer value2) {
                    addCriterion("created_staff_id not between", value1, value2, "createdStaffId");
                    return (Criteria) this;
                }
                                    public Criteria andCreatedDtIsNull() {
                    addCriterion("created_dt is null");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtIsNotNull() {
                    addCriterion("created_dt is not null");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtEqualTo(Date value) {
                    addCriterion("created_dt =", value, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtNotEqualTo(Date value) {
                    addCriterion("created_dt <>", value, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtGreaterThan(Date value) {
                    addCriterion("created_dt >", value, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtGreaterThanOrEqualTo(Date value) {
                    addCriterion("created_dt >=", value, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtLessThan(Date value) {
                    addCriterion("created_dt <", value, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtLessThanOrEqualTo(Date value) {
                    addCriterion("created_dt <=", value, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtIn(List<Date> values) {
                    addCriterion("created_dt in", values, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtNotIn(List<Date> values) {
                    addCriterion("created_dt not in", values, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtBetween(Date value1, Date value2) {
                    addCriterion("created_dt between", value1, value2, "createdDt");
                    return (Criteria) this;
                }

                public Criteria andCreatedDtNotBetween(Date value1, Date value2) {
                    addCriterion("created_dt not between", value1, value2, "createdDt");
                    return (Criteria) this;
                }
                                    public Criteria andOperateStaffIdIsNull() {
                    addCriterion("operate_staff_id is null");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdIsNotNull() {
                    addCriterion("operate_staff_id is not null");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdEqualTo(Integer value) {
                    addCriterion("operate_staff_id =", value, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdNotEqualTo(Integer value) {
                    addCriterion("operate_staff_id <>", value, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdGreaterThan(Integer value) {
                    addCriterion("operate_staff_id >", value, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdGreaterThanOrEqualTo(Integer value) {
                    addCriterion("operate_staff_id >=", value, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdLessThan(Integer value) {
                    addCriterion("operate_staff_id <", value, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdLessThanOrEqualTo(Integer value) {
                    addCriterion("operate_staff_id <=", value, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdIn(List<Integer> values) {
                    addCriterion("operate_staff_id in", values, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdNotIn(List<Integer> values) {
                    addCriterion("operate_staff_id not in", values, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdBetween(Integer value1, Integer value2) {
                    addCriterion("operate_staff_id between", value1, value2, "operateStaffId");
                    return (Criteria) this;
                }

                public Criteria andOperateStaffIdNotBetween(Integer value1, Integer value2) {
                    addCriterion("operate_staff_id not between", value1, value2, "operateStaffId");
                    return (Criteria) this;
                }
                                    public Criteria andVersionIsNull() {
                    addCriterion("version is null");
                    return (Criteria) this;
                }

                public Criteria andVersionIsNotNull() {
                    addCriterion("version is not null");
                    return (Criteria) this;
                }

                public Criteria andVersionEqualTo(Date value) {
                    addCriterion("version =", value, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionNotEqualTo(Date value) {
                    addCriterion("version <>", value, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionGreaterThan(Date value) {
                    addCriterion("version >", value, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionGreaterThanOrEqualTo(Date value) {
                    addCriterion("version >=", value, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionLessThan(Date value) {
                    addCriterion("version <", value, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionLessThanOrEqualTo(Date value) {
                    addCriterion("version <=", value, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionIn(List<Date> values) {
                    addCriterion("version in", values, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionNotIn(List<Date> values) {
                    addCriterion("version not in", values, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionBetween(Date value1, Date value2) {
                    addCriterion("version between", value1, value2, "version");
                    return (Criteria) this;
                }

                public Criteria andVersionNotBetween(Date value1, Date value2) {
                    addCriterion("version not between", value1, value2, "version");
                    return (Criteria) this;
                }
            }


}